PLC setting for FUJI MICREX-F ENET communication driver

 

 

PLC setting for FUJI MICREX-F ENET communication driver are as follows.

 

1. Ethernet Interface Module setting of FUJI MICREX-F series

 

a) setting method of front switch

switch no.      default                           meaning of setting

4                      OFF                                  OFF : default operation mode

                                                                  ON : loop-back test mode

3                      OFF                                  Don't care

2                      OFF                                  OFF : Enable write from other node PLC

ON : Disable write from other node PLC

1                      OFF                                  OFF : Connection termination when the specified timeout

ON : Don't connection termination when the specified timeout

 

b) Setting of last byte IP address (rear 2 mode switch)

 

 

c) Selection of communication media

 

NC1L-ET1 ETHERNET communication module can select 2 types of media, 10BaseT,  10Base2.

 

 

 FFU170B ETHERNET communication module have 2 selection switch.

Upper side switch is AUI or TPI media selection switch. The bottom switch is 10Base5 or 10Base2 media selection switch.

When you use the 10Base5 or 10Base2, you have to select the upper switch to 'AUI'.

 

 

 

2. Setting of communication parameter register

 FFU170B or NC1L-ET1 module have communication setting area of 0 ~ 675, File 0.

0 ~ 19 : Parameter setting area.

20 ~ 675 : Parameter setting area of Indivisual connection.

 

  a) Parameter setting area

  <Table 1> is contents of parameter setting area.

Address Contents Default value Remakrs
0  Lower 2 byte IP Address 0000h  
1 Higher 2 byte IP Address 0000h  
2 Ttimeout of TCP connection 300 0.1 second unit
3 Max TCP end time 600
4 Response Monitor Timer value 300
5 Server FTP Connection Monitor Timer value 3000
6 Client FTP Data Connection Monitor Timer value 30
7 Lower 2 byte of network Subnet Mask 0000h  
8 Higher 2 byte of network Subnet Mask 0000h  
9 Lower 2 byte of primary Gateway IP Address 0000h  
10 Higher 2 byte of primary Gateway IP Address 0000h  
11 ~ 19 Don't use area    
<Table 1> Contents of parameter setting area

  * Setting of IP address

(1)  Input IP address at 0 and 1 address of parameter setting area. (lower byte of 0 address = fixed to 00h)

(2)  Please set last byte of IP address from 'rear 2 mode switch' of ethernet module.

 

setting example 1) Setting IP address = 192.168.0.2

 0 address of File 0 = 0000h

1 address of File 0 = C0A8h

rear 2 mode switch = 2

 

 

setting example 2) Setting IP address = 162.0.9.50

 0 address of File 0 = 0900h

1 address of File 0 = A200h

rear 2 mode switch = 50h

 

b) Parameter setting area of Indivisual connection

  <Table 2> is contents of parameter setting area of Indivisual connection.

Address Contents Remarks
20 ~ 69 Connection 1 ~ 8 Parameter setting area Each connection =
50 WORD
70 ~ 119
120 ~ 169
170 ~ 219
220 ~ 269
270 ~ 319
320 ~ 369
370 ~ 419
420 ~ 675  User List for Server FTP  
<Table 2> Contents of parameter setting area of Indivisual connection

<Table 3> is contents of each connection for connection 1 ~ 8 paramter.

<Table 4> is contents and setting values for communication mode parameter.

Address Contents Default value Remarks
start address + 0 Communication mode 0000h Open method, etc
Refer to <Table 4>
start address+ 1 Number of service port 0000h 0100h ~ FFFFh
(256 ~ 65535)
start address+ 2  Lower 2 byte IP Address of companion(server, client) Node 0000h  IP Address and service port of companion(server, client) Node
start address+ 3 Higher 2 byte IP Address of companion(server, client) Node 0000h
start address+ 4 Service port number of companion(server, client) Node 0000h
start address+ 5  Ethernet address of companion(server, client) Node FFFFh  Ethernet address of companion(server, client) Node(Don't use)
start address+ 6 FFFFh
start address+ 7 FFFFh
start address+ 8 ~ 23 User name (Don't use) 0000h Max 16 digit
start address+ 24 ~39 Password (Don't use) 0000h Max 16 digit
start address+ 40 ~49 Don't use 0000h  
<Table 3> Contents of each connection for connection 1 ~ 8 paramter
Bit position Contents

Range

Setting value for communication
F, E Connection method

00 : Active,

11 : FullPassive,

10 : UnPassive

10
D Don't use

 

0
C Dummy byte

0 : Yes, 1 : No

0 or 1
B ~ 8 Don't use

 

0000
7 Protocol type

0 : TCP/IP,

1 : UDP/IP

0 (TCP) or 1 (UDP)
6 Type of communication code

0 : Binary,

1 : ASCII

0
5 Data Swap

0 : No, 1 : Yes

0 or 1
4 Don't use

0 : No, 1 : Yes

0
3 ~ 1 Communication mode

000 : Fixed/Common Buffer,

001 : General,

010 : Command Setting,

100 : Server FTP,

101 : Client FTP

010
0 Don't use

 

0
<Table 4> Contents and setting values for communication mode parameter

When you use 'TCP/IP' connection, the communication mode setting value is normally 8004h.( UDP/IP = 8084h)

 

 3. Creating of PLC Ladder

You must create PLC Ladder routime for communication setting in order to communicate with your computer and FUJI ETHERNET module.

 

a) Please transfer parameters data to FFU170B or NC1L-ET1 ethernet module from CPU.

This parameters should be transferred from registers to CPU to File No.0 in FFU170B or NC1L-ET1 module with a MSGT instruction.

b) Initialize the FFU170B or NC1L-ET1 ethernnet module.

Module initialization should be 'On' B70 memory area of PLC. (When ethernet module installed slot 1)

initialization success : B30 = On, initialization failure : B30 = Off. (When FFU170B or NC1L-ET1 ethernet module installed slot 1)

c) Please set Open Connection.

Please set to On Open Connection request relay(Connection 1 ~ 8 : B58 ~ B5F).

The Open Connection is completed, B18 (Connection 1) ~ B1F (Connection 8) relay set to On.(When FFU170B or NC1L-ET1 ethernet module installed slot 1)

 

 * Example of Ladder program)

Setting value) protocol : TCP,  service port number : computer(PC) - 2000, PLC - 2000

IP Address: computer(PC) - 192.168.0.15, PLC - 192.168.0.2

TCP transmission timeout value : 300 (30 second)

Max TCP end time value  : 600 (60 second)

Response monitor timer value : 300 (30 second)

Server FTP command monitor timer value : 3000 (300 second)

Client FTP data connection monitor timer value : 30 (3 second)

Subnet mask : 255.255.255.0

 

Example of Ladder program)

<Figure 1> is example of Ladder program for TCP connection.

 

<Figure 1> Example of Ladder program for TCP connection

 

 4. The method of TCP/IP communication speed problem

When you communicate with Fuji PLC after creating the PLC Ladder program such as chapter 3, one send/receive packet data take aboub 0.5 second or more.

You can fix this proble as follows.

Open 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Afd\Parameters\IgnorePushbitOnReceives' at Registry of Windows.

Please set this 'DWORD' value to '1'. (previous value = 0)

 

Setting example of Registry problem)

Run 'regedit' at ' ¡®Start|Execution¡¯ of Windows, then open window 'Registry editor' such as <Figure 2>.

Normally 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Afd' key made by Ladder program, but part of 'Parameters\IgnorePushbitOnReceives' key will be don't exist.

So you have to creat this key.

<Figure 2> Exampleof Registry editor

 

<Figure 3> Example of 'IgnorePushbitOnReceives' DWORD value editting dialog box

Note) When you using UDP/IP for  FUJI MICREX-F ENET, generally don't  happen registry problem.

 

Reference) FUJI MICREX-F ENET communication driver